package com.qianniu.napi.admin.entity;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;
import java.util.List;

/**
 * <p>
 * 
 * </p>
 *
 * @author chenxuebin
 * @since 2018-12-17
 */
@TableName("t_pyq_act")
public class PyqAct extends Model<PyqAct> {

    private static final long serialVersionUID = 1L;

	@TableId(value="id", type= IdType.AUTO)
	private Long id;
	private Long pyqid;
    /**
     * 行为类型@1：回复；2：点赞；3：查看
     */
	private Integer act;
	private Integer state;
	private String info;
	private Long hid;
	private String name;
	private String logo;
	private String hname;
	private String hlogo;
	private Long huid;
	private Long mid;
	private Long mpid;
	private Long sid;
	private Long uid;

	@TableField(exist = false)
	private List<PyqAct> huifus;

	private Date createtime;

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Long getPyqid() {
		return pyqid;
	}

	public void setPyqid(Long pyqid) {
		this.pyqid = pyqid;
	}

	public Integer getAct() {
		return act;
	}

	public void setAct(Integer act) {
		this.act = act;
	}

	public String getInfo() {
		return info;
	}

	public void setInfo(String info) {
		this.info = info;
	}

	public Long getHid() {
		return hid;
	}

	public void setHid(Long hid) {
		this.hid = hid;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getLogo() {
		return logo;
	}

	public void setLogo(String logo) {
		this.logo = logo;
	}

	public Long getMid() {
		return mid;
	}

	public void setMid(Long mid) {
		this.mid = mid;
	}

	public Long getMpid() {
		return mpid;
	}

	public void setMpid(Long mpid) {
		this.mpid = mpid;
	}

	public Long getUid() {
		return uid;
	}

	public void setUid(Long uid) {
		this.uid = uid;
	}

	public Date getCreatetime() {
		return createtime;
	}

	public void setCreatetime(Date createtime) {
		this.createtime = createtime;
	}

	public Integer getState() {
		return state;
	}

	public void setState(Integer state) {
		this.state = state;
	}

	public List<PyqAct> getHuifus() {
		return huifus;
	}

	public void setHuifus(List<PyqAct> huifus) {
		this.huifus = huifus;
	}

	public String getHname() {
		return hname;
	}

	public void setHname(String hname) {
		this.hname = hname;
	}

	public String getHlogo() {
		return hlogo;
	}

	public void setHlogo(String hlogo) {
		this.hlogo = hlogo;
	}

	public Long getHuid() {
		return huid;
	}

	public void setHuid(Long huid) {
		this.huid = huid;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	@Override
	public String toString() {
		return "PyqAct{" +
			"id=" + id +
			", pyqid=" + pyqid +
			", act=" + act +
			", info=" + info +
			", hid=" + hid +
			", name=" + name +
			", logo=" + logo +
			", mid=" + mid +
			", uid=" + uid +
			", createtime=" + createtime +
			"}";
	}
}
